package com.zhenhunfan.hello.aop.demo01.service;

import com.zhenhunfan.hello.aop.demo01.annotation.UserCheck;
import com.zhenhunfan.hello.aop.demo01.entity.User;
import org.springframework.stereotype.Service;

/**
 * <p>Title: UserService</p>
 * <p>Description: 模拟用户插入和更新</p>
 *
 * @author zhenhunfan
 * @version 1.0.0
 * @date 2021/3/30
 */
@Service
public class UserService {

    @UserCheck
    public void insertUser(User user){
        System.out.println("插入用户成功");
    }

    @UserCheck
    public void updateUser(User user){
        System.out.println("更新用户成功");
    }
}
